package com.project.myPackage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Products implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId( type = IdType.AUTO)
    private Integer product_id;
    private Integer category_id;
    private String category_name;
    private String product_name;
    private String product_description;
    private String pictures;
    private Float price;
    private Integer stock;
    //是否上架 默认创建的时候 未上架0，上架1
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
}
